package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
* @author: 陈宇寰
* @date: 2021-10-14 10:35:30
* @params:
* @return:
* @description: 设备信息
*/
public class SysEquipment extends BaseEntity {

    private Long eqId;
    private Long contactGroup;
    private String equipmentName;
    private Integer equipmentSort;
    private String status;
    private String contactName;


    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getEqId() {
        return eqId;
    }

    public void setEqId(Long eqId) {
        this.eqId = eqId;
    }

    @NotNull(message = "关联组别不能为空")
    public Long getContactGroup() {
        return contactGroup;
    }

    public void setContactGroup(Long contactGroup) {
        this.contactGroup = contactGroup;
    }

    @NotBlank(message = "设备名称不能为空")
    @Size(min = 0, max = 30, message = "设备名称长度不能超过30个字符")
    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public Integer getEquipmentSort() {
        return equipmentSort;
    }

    public void setEquipmentSort(Integer equipmentSort) {
        this.equipmentSort = equipmentSort;
    }
}
